package top.igotcha.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author Gotcha
 * @date 2021/1/28
 * @describe
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Result {
    //是否成功
    private boolean flag;
    // 返回码
    private Integer code;
    //返回信息
    private String message;
    // 返回数据
    private Object data;
    public Result(boolean flag, Integer code, String message) {
        super();
        this.flag = flag;
        this.code = code;
        this.message = message;
    }

    public boolean isFlag() {
        return flag;
    }
}
